    <head>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.url.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.wrapper.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxtab.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxgrid.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/jscal2.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/lang/cn.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/webapp/01_trade/inspection_journal_edit.js"></script>
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Grid.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Forms_Edit.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Calendar/jscal2.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/UI/TabStrip.css" />
    </head>
    <body>
        <div id="panelTop" style="position:relative; top:0px; height:28px; line-height:28px;">
            <div id="btnPanel" style="position:relative; left:8px; width:auto; top:1px; padding-top:0px;">
                <input type="button" name="_ButClose" value="返回一览画面" id="ButClose" class="actButton" onclick="location.assign(parent.basePath + '/trade/inspection_journal/list.html');" />
            </div>
        </div>
        <input id="HeaderId" type="hidden" value="0" />
        <!--span id="IsChecked" class="n1" style="position:absolute; top:6px; right:8px; width:auto; padding:3px 8px;">状态：已审核。</span-->
        <div id="SlaveArea" style="position:relative; top:5px;">
            <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                <li id="menu_01" class="tabInactive">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">化检日记帐</abbr></span></span>
                    </div>
                </li>
                <li id="menu_02">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">明细状况</abbr></span></span>
                    </div>
                </li>
            </ul>
            <div id="tabPanelContent" class="tab-wrapper" style="top:0px; height:auto;">
                <div id="tabWrapper_01" class="tab-content" style="width:100%;">
                    <div id="btnPanel01" style="position:relative; top:5px; left:0px; width:auto;">
                        <input type="button" name="_ButNew" value="增加" id="ButNew" class="actButton" onclick="thisPage.DoInsert();"/>
                        <input type="button" name="_ButUpdate" value="保存" id="ButUpdate" class="actButton" onclick="thisPage.Save();" />
                    </div>
                    <div id="SlaveDataArea_01" style="margin-top:10px;">
                        <table id="tb-field" class="field" style="position:relative; top:0px; left:0px; text-align:left; width:100%;">
                            <colgroup>
                                <col style="width: 90px;" />
                                <col style="width: 240px;" />
                                <col style="width: 90px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col />
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th>
                                        <label for="NoOfBill">化检编号<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="NoOfBill" name="_NoOfBill" tabindex="1" />
                                    </td>
                                    <th>
                                        <label for="OverFlag">完成状况</label>
                                    </th>
                                    <td>
                                        <input type="checkbox" class="checkbox" id="OverFlag" name="_OverFlag" tabindex="2" />
                                    </td>
                                    <th>
                                        <label for="QualityInspectionUnit">检验单位<em>★</em></label>
                                    </th>
                                    <td colspan="3">
                                        <input type="text" id="QualityInspectionUnit" name="_QualityInspectionUnit" tabindex="3" style="width:480px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="UpdatedByName">操作员</label>
                                    </th>
                                    <td>
                                        <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="4" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/>
                                    </td>
                                    <th>
                                        <label for="UpdatedDate">操作日期</label>
                                    </th>
                                    <td colspan="5">
                                        <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="5" />
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">备注</label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="6" tabindex="6" style="width:100%; height:105px; resize:none;"></textarea>
                                    </td>
                                </tr>
                            </tbody>
                        </table>                  
                    </div>
                </div>
                <!-- 明细-->
                <div id="tabWrapper_02" class="tab-content" style="width:100%;">
                    <div id="dataArea_01" style="position:absolute; top:10px; left:0px; width:330px;">
                        <div class="buttonWrapper" style="height:22px; line-height:22px; margin-bottom:5px; background-color:#FFFFFF;">
                            <input type="button" name="_ButInsertCertificationLines" value="增加合格证" id="ButInsertCertificationLines" class="actButton" onclick="linesCertificationHandler.AddLines();" />
                        </div>
                        <table id="slaveContent_01" class="grid01" style="width:100%;">
                            <tr>
                                <th style="padding:0px;">
                                    <table id="tabHeader01" class="grid01" style="border:none; width:100%;">
                                        <colgroup>
                                            <col style="width: 36px;" />
                                            <col style="width: 36px;" />
                                            <col style="width: 160px;" />
                                            <col />
                                            <col style="width: 18px;" />
                                        </colgroup>
                                        <thead>
                                            <tr>
                                                <th style="border-bottom:none; text-align:center;">编辑</th>
                                                <th style="border-bottom:none; text-align:center;">删除</th>
                                                <th style="border-bottom:none;">合格证号</th>
                                                <th style="border-bottom:none;">日期</th>
                                            </tr>
                                        </thead>
                                    </table>
                                </th>
                            </tr>
                            <tr>
                                <td style="padding:0px; vertical-align:top;">
                                    <div id="divD_11" class="gridDataWrapper" style="border:none; width:100%; overflow-y:scroll; overflow:-moz-scrollbars-vertical;">
                                        <table id="tabData01" class="grid01" style="margin-top:-1px; width:100%;">
                                            <colgroup>
                                                <col style="width: 36px;" />
                                                <col style="width: 36px;" />
                                                <col style="width: 160px;" />
                                                <col />
                                            </colgroup>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="dataArea_02" style="position:absolute; top:10px; left:338px; float:left;">
                        <div class="btnPanel_02" style="height:22px; line-height:22px; margin-bottom:5px; font-weight:bold;">
                            <input type="button" name="_ButInsertNoOfStyleLines" value="增加款号" id="ButInsertNoOfStyleLines" class="actButton" onclick="linesNoOfStyleHandler.DoProductChoice();" />
                            <input type="button" name="_ButSaveNoOfStyleLines" value="保存款号" id="ButSaveNoOfStyleLines" class="actButton" onclick="linesNoOfStyleHandler.SaveLines();" />
                            <input type="button" name="_ButDeleteNoOfStyleLines" value="批量删除" id="ButDeleteNoOfStyleLines" class="actButton" onclick="linesNoOfStyleHandler.DoBatchDeleteLines();" />
                            <span style="position:absolute; right:5px;">■ 本次化检款号</span>
                        </div>
                        <table id="slaveContent_03" class="grid01" style="width:100%;">
                            <tr>
                                <th style="padding:0px;">
                                    <table id="tabHeader02" class="grid01" style="border:none; width:100%;">
                                        <colgroup>
                                            <col style="width: 27px;" />
                                            <col style="width: 36px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 90px;" />
                                            <col style="width: 80px;" />
                                            <col style="width: 80px;" />
                                            <col style="width: 70px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 80px;" />
                                            <col />
                                            <col style="width: 18px;" />
                                        </colgroup>
                                        <thead>
                                            <tr>
                                                <th style="border-bottom:none; text-align:center;">
                                                   <label class="btn" for="CheckAllNoOfStyle"><input id="CheckAllNoOfStyle" type="checkbox" onclick="linesNoOfStyleHandler.DoCheckAll($(this));" /><i></i><span></span></label>
                                                </th>
                                                <th style="border-bottom:none; text-align:center;">删除</th>
                                                <th style="border-bottom:none;">品名</th>
                                                <th style="border-bottom:none;">款号</th>
                                                <th style="border-bottom:none;">设计担当</th>
                                                <th style="border-bottom:none;">贸易担当</th>
                                                <th style="border-bottom:none;">色号</th>
                                                <th style="border-bottom:none;">颜色</th>
                                                <th style="border-bottom:none;" class="editable-column">料齐日</th>
                                                <th style="border-bottom:none;" class="editable-column">备注</th>
                                            </tr>
                                        </thead>
                                    </table>
                                </th>
                            </tr>
                            <tr>
                                <td style="padding:0px; vertical-align:top;">
                                    <div id="divD_21" class="gridDataWrapper" style="max-height:119px; border:none; width:100%; overflow-y:scroll; overflow:-moz-scrollbars-vertical;">
                                        <table id="tabData02" class="grid01" style="margin-top:-1px; width:100%;">
                                            <colgroup>
                                                <col style="width: 27px;" />
                                                <col style="width: 36px;" />
                                                <col style="width: 90px;" />
                                                <col style="width: 90px;" />
                                                <col style="width: 80px;" />
                                                <col style="width: 80px;" />
                                                <col style="width: 70px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 80px;" />
                                                <col />
                                            </colgroup>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <span id="materialLinesTitle" style="position:relative; margin-top:10px; margin-bottom:2px; display:block; height:28px; line-height:28px; font-weight:bold;">                           
                            <input type="button" name="_ButInsertMaterialLines" value="增加资材" id="ButInsertMaterialLines" class="actButton" onclick="linesMaterialHandler.AddLines();" />
                            <input type="button" name="_ButSaveMaterialLines" value="保存资材" id="ButSaveMaterialLines" class="actButton" onclick="linesMaterialHandler.SaveLines();" />
                            <input type="button" name="_ButDeleteMaterialLines" value="批量删除" id="ButDeleteMaterialLines" class="actButton" onclick="linesMaterialHandler.DoBatchDeleteLines();" />
                            <span style="position:absolute; right:5px;">■ 款号对应资材</span>
                        </span>
                        <table id="slaveContent_04" class="grid01" style="width:100%;">
                            <tr>
                                <th style="padding:0px;">
                                    <table id="tabHeader03" class="grid01" style="border:none; width:100%;">
                                        <colgroup>
                                            <col style="width: 27px;" />
                                            <col style="width: 36px;" />
                                            <col style="width: 180px;" />
                                            <col style="width: 180px;" />
                                            <col style="width: 40px;" />
                                            <col style="width: 160px;" />
                                            <col style="width: 80px;" />
                                            <col />
                                            <col style="width: 18px;" />
                                        </colgroup>
                                        <thead>
                                            <tr>
                                                <th style="text-align:center; border-bottom:none;">
                                                    <label class="btn" for="CheckAllMaterial"><input id="CheckAllMaterial" type="checkbox" onclick="linesMaterialHandler.DoCheckAll($(this));" /><i></i><span></span></label>
                                                </th>
                                                <th style="text-align:center; border-bottom:none;">删除</th>
                                                <th style="border-bottom:none;">料号</th>
                                                <th style="border-bottom:none;" class="editable-column">料名</th>
                                                <th style="border-bottom:none; text-align:center;">单位</th>
                                                <th style="border-bottom:none;" class="editable-column">颜色</th>
                                                <th style="border-bottom:none;" class="editable-column">料齐日</th>
                                                <th style="border-bottom:none;" class="editable-column">备注</th>
                                            </tr>
                                        </thead>
                                    </table>
                                </th>
                            </tr>
                            <tr>
                                <td style="padding:0px; vertical-align:top;">
                                    <div id="divD_31" class="gridDataWrapper" style="border:none; width:100%; overflow-y:scroll; overflow:-moz-scrollbars-vertical;">
                                        <table id="tabData03" class="grid01" style="margin-top:-1px; width:100%;">
                                            <colgroup>
                                                <col style="width: 27px;" />
                                                <col style="width: 36px;" />
                                                <col style="width: 180px;" />
                                                <col style="width: 180px;" />
                                                <col style="width: 40px;" />
                                                <col style="width: 160px;" />
                                                <col style="width: 80px;" />
                                                <col />
                                            </colgroup>
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </body>